/**
 * 巡检规则详情——基础信息——表格配置
 */
export const INSPECTT_RULE_BASEINFO_COLUMNS = [
  [
    {
      label: "巡检类型",
      value: "inspectTypeDesc"
    },
    {
      label: "科室",
      value: "classNameDesc"
    }
  ],
  [
    {
      label: "备注",
      value: "remark"
    }
  ]
];
/**
 * 巡检规则详情——巡检内容——表格配置
 */
export const INSPECTT_RULE_CHECK_CONTENT_COLUMNS = [
  [
    {
      label: "巡检区域",
      value: "inspectAreaDesc"
    },
    {
      label: "巡检内容",
      value: "inspectContentTypes"
    }
  ]
];
/**
 * 巡检规则——巡检模板表格
 */
export const showTemplateDetail = callBack => {
  const INSPECT_RULE_TEMPLATE_TABLE_COLUMNS = [
    { prop: "index", label: "#", minWidth: "40", fixed: "left" },
    { prop: "expend", minWidth: "40", fixed: "left" },
    {
      prop: "temCode",
      label: "巡检项模板编码",
      minWidth: "150",
      type: "link",
      showOverflowTooltip: true,
      fixed: "left",
      customFun: id => {
        // window.open(`/all/equip/inspect/template/detail?id=${id}`);
        callBack(id);
      }
    },
    { prop: "temName", label: "巡检项模板名称", minWidth: "150", showOverflowTooltip: true, fixed: "left" },
    { prop: "inspectContentTypeDesc", label: "巡检内容", minWidth: "80", showOverflowTooltip: true },
    { prop: "classNameDesc", label: "科室", minWidth: "60", showOverflowTooltip: true },
    { prop: "systemCodeDesc", label: "系统", minWidth: "160", showOverflowTooltip: true },
    { prop: "categoryDesc", label: "设备总称", minWidth: "140", showOverflowTooltip: true },
    { prop: "typeDesc", label: "设备类型", minWidth: "140", showOverflowTooltip: true },
    { prop: "inspectAreaDesc", label: "巡检区域", minWidth: "160", showOverflowTooltip: true },
    { prop: "updateTime", label: "更新时间", minWidth: "150", showOverflowTooltip: true },
    { prop: "operate", minWidth: "55", label: "操作", showOverflowTooltip: true, fixed: "right" }
  ];
  return INSPECT_RULE_TEMPLATE_TABLE_COLUMNS;
};
/**
 * 巡检规则——弹窗——巡检模板表格
 */
export const INSPECT_RULE_DIALOG_TEMPLATE_TABLE_COLUMNS = [
  { prop: "selection", minWidth: "40", fixed: "left" },
  { prop: "expend", minWidth: "40", fixed: "left" },
  { prop: "temCode", label: "巡检项模板编码", minWidth: "150", showOverflowTooltip: true, fixed: "left" },
  { prop: "temName", label: "巡检项模板名称", minWidth: "160", showOverflowTooltip: true, fixed: "left" },
  { prop: "inspectContentTypeDesc", label: "巡检内容", minWidth: "80", showOverflowTooltip: true },
  { prop: "classNameDesc", label: "科室", minWidth: "60", showOverflowTooltip: true },
  { prop: "systemCodeDesc", label: "系统", minWidth: "160", showOverflowTooltip: true },
  { prop: "categoryDesc", label: "设备总称", minWidth: "160", showOverflowTooltip: true },
  { prop: "typeDesc", label: "设备类型", minWidth: "160", showOverflowTooltip: true },
  { prop: "inspectAreaDesc", label: "巡检区域", minWidth: "160", showOverflowTooltip: true }
];
/**
 * 巡检规则——巡检设备表格
 */
export const INSPECT_RULE_EQUIP_TABLE_COLUMNS = [
  { prop: "drag", minWidth: "40", fixed: "left" },
  { prop: "eqpId", label: "设备编号", minWidth: "150", showOverflowTooltip: true, fixed: "left" },
  { prop: "eqpName", label: "设备名称", minWidth: "150", showOverflowTooltip: true },
  { prop: "systemNameAll", label: "设备系统", minWidth: "180", showOverflowTooltip: true },
  { prop: "typeName", label: "设备类型", minWidth: "140", showOverflowTooltip: true },
  { prop: "modelName", label: "设备型号", minWidth: "140", showOverflowTooltip: true },
  { prop: "positionNameAll", label: "安装位置", minWidth: "180", showOverflowTooltip: true },
  { prop: "operate", minWidth: "55", label: "操作", showOverflowTooltip: true, fixed: "right" }
];
/**
 * 巡检规则——提交表单默认值
 */
export const INSPECT_RULE_DEFAULT_FORMVALUE = {
  ruleCode: "",
  ruleName: "",
  inspectContentTypes: [],
  inspectType: "",
  className: "",
  inspectArea: "",
  remark: "",
  inspectTemCodeList: [],
  eqpIdList: [],
  ruleContent: []
};
